﻿using HardcoreGame.Common.Systems;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace HardcoreGame.Common.GlobalItems
{
    public class EventItem : GlobalItem
    {
        public override bool InstancePerEntity => true;
        public override bool CanUseItem(Item item, Player player)
        {
            if (item.type == ItemID.CellPhone && EventSystem.activeEvents.Contains(3))
            {
                return false;
            }
            return base.CanUseItem(item, player);
        }
    }
}
